/*
 * *****************************************************************************
 *  Copyright ( c ) 2019 huibur Inc. All Rights Reserved.
 *
 *  This software is the confidential and proprietary information of Huibur Inc
 *  (*Confidential Information*). You shall not disclose such Confidential Information
 *  and shall use it only in accordance with the terms of the license agreement
 *  you entered into with Huibur or a Huibur authorized
 *  reseller (the "License Agreement*).
 *  ******************************************************************************
 */

package com.huibur.devicecheck.config;

/*******************************************************
* @title: ErrCodeEnum.java
* @description:
* @author wushiqi
* @date 2021/8/31
* @version 1.0
*******************************************************/
public enum ErrCodeEnum {
    /**
     * 正常代码
     */
    SUCCESS("200", "OK"),
    P4000("P4000", "缺少请求头部参数"),
    P4001("P4001", "参数校验失败"),
    P4002("P4002", "参数类型转换异常"),
    P4003("P4003", "处理请求method不匹配"),
    P4004("P4004", "请求方法的参数绑定异常"),
    P4005("P4005", "请求参数异常或者格式不正确"),
    P4006("P4006", "请求参数异常或者格式不正确"),
    P4007("P4007", "认证失败或者已无效，请登录"),
    P4008("P4008", "您没有权限访问此数据"),
    P4009("P4009", "用户不存在"),
    P4010("P4010", "跨域攻击异常"),
    P5000("P5000", "程序异常"),
    P5001("P5001", "系统开小差了，有人要扣奖金了"),
    P5002("P5002", "未知异常"),
    P5003("P5003", "数据库操作异常");



    private final String code;
    private final String message;

    ErrCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
